import http from '@/assets/js/http';

// 登录
export const codeLogin = (data) => {
  return http.post('/apiv2/user/login', data)
}

// 注册
export const register = (data) => {
  return http.post('/apiv2/user/register', data)
}


// 退出登录
export const loginOut = (data) => {
  return http.post('/apiv2/user/logout', data);
}

// 热门搜索关键词
export const hotSearch = (data) => {
  return http.post('/apiv2/index/hotSearch', data);
}
